toSet

fun toSet(): Set<E>

Returns all elements of this set as a Set of type E.